﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace ERP_RORZE_PRODUCT.Product.BasicList
{
    public partial class frm_BasicList : DevExpress.XtraEditors.XtraForm
    {
        ctrlSection ctrlSetion = new ctrlSection();
        ctrlExpence ctrlExpence = new ctrlExpence();
        ctrlJig ctrlJig = new ctrlJig();
        ctrlOption ctrlOption = new ctrlOption();
        ctrlWork ctrlWork = new ctrlWork();

        public frm_BasicList()
        {
            InitializeComponent();
        }

        private void navItemSection_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spBasiclist.Panel2.Controls.Clear();
            spBasiclist.Panel2.Controls.Add(ctrlSetion);
            ctrlSetion.Dock = DockStyle.Fill;
        }

        private void navItemWork_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spBasiclist.Panel2.Controls.Clear();
            spBasiclist.Panel2.Controls.Add(ctrlWork);
            ctrlWork.Dock = DockStyle.Fill;
        }

        private void navItemOption_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spBasiclist.Panel2.Controls.Clear();
            spBasiclist.Panel2.Controls.Add(ctrlOption);
            ctrlOption.Dock = DockStyle.Fill;
        }

        private void navItemJig_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spBasiclist.Panel2.Controls.Clear();
            spBasiclist.Panel2.Controls.Add(ctrlJig);
            ctrlJig.Dock = DockStyle.Fill;
        }

        private void navItemExpence_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spBasiclist.Panel2.Controls.Clear();
            spBasiclist.Panel2.Controls.Add(ctrlExpence);
            ctrlExpence.Dock = DockStyle.Fill;
        }
    }
}